package com.wsoft.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @Author z001
 * @Date 2024/9/6 09:07
 */
public class FieldKindConstant {

    /**
     * 字符
     */
    public static final Integer VARCHAR = 1;

    /**
     * 大文本
     */
    public static final Integer BIG_VARCHAR = 2;

    /**
     * 整数
     */
    public static final Integer INTEGER = 3;

    /**
     * 小数
     */
    public static final Integer DECIMAL = 4;

    /**
     * 日期
     */
    public static final Integer DATE = 5;

    /**
     * 时间
     */
    public static final Integer TIME = 6;

    /**
     * 文件 图片
     */
    public static final Integer FILE_PIC = 7;

    /**
     * 文件  附件
     */
    public static final Integer FILE_FILE = 8;

    /**
     * 当前时间
     */
    public static final Integer NOW_TIME = 9;

    /**
     * 当前用户
     */
    public static final Integer NOW_USER = 10;

    /**
     * 当前组织
     */
    public static final Integer NOW_ORGANIZATION = 11;

    /**
     * 当前岗位
     */
    public static final Integer NOW_POST = 12;

    /**
     * 当前职级
     */
    public static final Integer NOW_LEVEL = 13;

    /**
     * 选择人员
     */
    public static final Integer SELECT_USER = 14;

    /**
     * 选择组织
     */
    public static final Integer SELECT_ORGANIZATION = 15;

    /**
     * 选择岗位
     */
    public static final Integer SELECT_POST = 16;

    /**
     * 选择职级
     */
    public static final Integer SELECT_LEVEL = 17;

    /**
     * 选择表单
     */
    public static final Integer SELECT_FORM = 18;

    /**
     * 字典
     */
    public static final Integer DICT = 19;

    /**
     * 枚举
     */
    public static final Integer ENUM = 20;

    /**
     * 公式
     */
    public static final Integer FORMULA = 21;

    /**
     * 环境变量
     */
    public static final Integer ENVIRONMENT = 22;

    /**
     * 自定义编码
     */
    public static final Integer CODE = 23;


    /**
     * 自动填充类型 数组
     */
    public static final List<Integer> AUTO_FIELD_LIST = Arrays.asList(NOW_TIME,NOW_USER,NOW_ORGANIZATION,NOW_POST,NOW_LEVEL);


}
